package br.com.skytef.beans.POS;

import java.util.ArrayList;
import java.util.List;

import br.com.skytef.entity.DetailProductEntity;
import br.com.skytef.entity.OrderItemEntity;
import br.com.skytef.entity.ProductMerchandiseEntity;

public class ItemSelected {
	private boolean active;
	private OrderItemEntity orderItem;
	private List<DetailProductEntity> details;

	public ItemSelected() {
		details = new ArrayList<DetailProductEntity>();
		active = false;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public OrderItemEntity getOrderItem() {
		return orderItem;
	}

	public void setOrderItem(OrderItemEntity orderItem) {
		this.active = true;
		this.orderItem = orderItem;
	}
	
	public void setOrderItem(OrderItemEntity orderItem, boolean active) {
		this.active = active;
		this.orderItem = orderItem;
	}

	public List<DetailProductEntity> getDetails() {
		return details;
	}
	
	public void setDetails(List<DetailProductEntity> details) {
		this.details = details;
	}

	public void addDetails(DetailProductEntity detail) {
		this.details.add(detail);
		
	}

}
